package com.hxy.health.platform.pojo;

import java.util.Date;

public class Comment {
    /**  */
    private Integer id;

    /** 文章id */
    private Integer articleId;

    /** 姓名 */
    private String username;

    /** 邮箱 */
    private String email;

    /** 图片头像 */
    private String imgUrl;

    /** 内容 */
    private String content;

    /** 创建时间 */
    private Date createTime;

    /** 更新时间 */
    private Date updateTime;

    public Comment(Integer id, Integer articleId, String username, String email, String imgUrl, String content, Date createTime, Date updateTime) {
        this.id = id;
        this.articleId = articleId;
        this.username = username;
        this.email = email;
        this.imgUrl = imgUrl;
        this.content = content;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Comment() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl == null ? null : imgUrl.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}